﻿#define  _CRT_SECURE_NO_WARNINGS 1

#include "SList.h"

void TestSList1()
{
	SLTNode* plist = NULL;
	SListPushiBack(&plist, 1);
	SListPushiBack(&plist, 2);
	SListPushiBack(&plist, 3);
	
	//想在3的前面插入一个30
	SLTNode* pos = SListFind(plist, 3);
	if(pos)
	{
		SListInsert(&plist, pos, 30);
	}
	SListPrint(plist);
}

int main()
{
	TestSList1();
}